# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-prefixed
_pkgname=prefixed
pkgver=0.9.0
pkgrel=3
pkgdesc='Prefixed alternative numeric library.'
arch=('any')
url='https://pypi.org/project/prefixed/#files'
license=('MPL')
depends=('python')
makedepends=('python-setuptools' 'python-wheel' 'python-pip')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('1d638fba8124462dcfe4cf25f763e1df57cba771359a2aa0dd01969dabf5dfb0e121d18b1195f89725d227fe44be7a582dc64f0e8ef2288ffcbf4735b7923fc6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

